# dialect+driver://username:password@host:port/database

dialect = 'mysql'
# 如果使用MySQL-python模块，则这里是mysqldb。我们使用PyMySQL，则这里使用pymysql
driver = 'pymysql'
username = 'root'
password = 'liqiang559891'
host = '127.0.0.1'
port = '3306'
# 必须先利用MYSQL创建一个数据库，在终端使用`create database db_demo1 charset utf8;`
database = 'db_demo1'

SQLALCHEMY_DATABASE_URI = "{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(dialect,
                                                                       driver,
                                                                       username,
                                                                       password,
                                                                       host,
                                                                       port,
                                                                       database)
SQLALCHEMY_TRACK_MODIFICATIONS = False
